<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
require_once template('head'); 
echo <<<EOT
-->
<title>{$lang_setfiletitle}</title>
</head>
<body>
<br>
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="table_list1">
          <tr> 
            <td colspan="7" align="center" class="list1_title">{$lang_setfiletitle}</td>
          </tr>
              <tr>
			<tr> 
            <td colspan="7" align="left">
			<a href="uploadfile.php?lang=$lang&fileurl=upload" style="color:#FF0000"><img src="$img_url/file.gif"><b>upload</b></a>&nbsp;&nbsp;{$lang_setfiletext1}<br><br>
<!--
EOT;
foreach ($fileclass[1] as $key=>$val){
echo <<<EOT
-->
<div style="float:left; margin:2px 20px 2px 0px;"><a href="uploadfile.php?lang=$lang&fileurl=upload/$val[name]&file_classnow=2" style="color:#003399;float:left;"><img src="$img_url/file.gif"><b>$val[name]</b></a> 
<!--
EOT;
if($file_classnow>=2){
foreach ($fileclass[2] as $key=>$val2){
if (strstr($val2[url],$fileurl)&&strstr($val2[url],$val[name])){
echo <<<EOT
-->
<br><br><a href="uploadfile.php?lang=$lang&fileurl=upload/$val[name]/$val2[name]&file_classnow=3" style=" float:left; margin:5px 10px 0px 5px;" ><img src="$img_url/filesmall.gif">$val2[name]</a>
<!--
EOT;
}}}
echo <<<EOT
-->
</div>
<!--
EOT;
}
echo <<<EOT
-->
			</td>
          </tr>
		  <tr> 
            <td colspan="7" align="left">
			<br>【<font color="#0000FF"><b>{$metnowdir}/</b></font>】{$lang_setfiletext2}<font color="#FF0000"><b>{$total_count}</b></font>{$lang_setfiletext3}，<a href="uploadfile.php?lang=$lang&filename={$metnowdir}&file_classnow=$file_classnow&action=deletefolder" onClick="return ConfirmDel();" style="color:#FF0000" ><img src="$img_url/redx.gif" width="10" style="margin:5px 0px 0px 5px">{$lang_skinDelete}</a>【<font color="#0000FF"><b>{$metnowdir}/</b></font>】{$lang_setfiletext4}</td>
          </tr>
			
			    <td  class="list1_lm" align="center" >{$lang_skinDocument}</td>
                <td  class="list1_lm" align="center">{$lang_selected}</td>
                <td  class="list1_lm" align="center">{$lang_setfilename}</td>
                <td  class="list1_lm" align="center" >{$lang_setfiletype}</td>
                <td  class="list1_lm" align="center" >{$lang_setfilesize}</td>
				<td  class="list1_lm" align="center" >{$lang_setfiletime}</td>
				<td  class="list1_lm" align="center" >{$lang_operate}</td>
              </tr>
			  <form name="del" method="Post" action="uploadfile.php?lang=$lang&fileurl=$fileurl2&file_classnow=$file_classnow&page=$page&action=delete" onSubmit="return ConfirmDelall();">
<!--
EOT;
$i=0;
foreach ($metfile as $key=>$val){
if($i>=$startnum and $i<$endnum){
$val[uploadtime]=strftime("%y-%m-%d %H:%M",$val["time"]);
$val[size]=number_format($val[size]/1024, 2);
$filetypearray=explode('.',$val[file]);
$val[type]=$filetypearray[1];
echo <<<EOT
-->          
              <tr class="tdbg">
			   <td  class="list1_content" align="center">$val[folder]</td>
              <td class="list1_content_titile" align="center" ><input name='id' type='checkbox' onClick="unselectall()" id="id" value='{$val[folder]}/{$val[file]}' class="xz"></td>
                <td align="center" class="list1_content">$val[file]</td>
                <td  class="list1_content" align="center">$val[type]</a></td>
                <td align="center" class="list1_content">$val[size] KB</td>
				<td align="center" class="list1_content">20$val[uploadtime]</td>
				<td align="center" class="list1_content" style="color:#0066FF;"><a href="{$val[folder]}/$val[file]" target="_blank" >{$lang_setfileview}</a> | <a href="uploadfile.php?lang=$lang&filename={$val[folder]}/{$val[file]}&fileurl=$fileurl2&file_classnow=$file_classnow&page=$page&action=delete" onClick="return ConfirmDel();" >{$lang_delete}</a></td>
              </tr>
<!--
EOT;
}
$i++;
}
echo <<<EOT
-->
       
        </td>
          </tr> 
		   
   	   <tr> 
	        <td  class="input_bottom" align="center" colspan="2">
              {$lang_selectall} <input name="chkAll" class="xz" type="checkbox" id="chkAll" onclick=CheckAll(this.form) value="checkbox"> 
              </td>
			  <td  class="input_bottom" colspan="6" align="left"><input name="submit" type='submit' value='{$lang_deleteselected}' style="*padding-top:4px;"><input name="action_type" type="hidden" id="action_type" value="del"><input name="allid" type="hidden" id="allid" value=""><input name="lang" type="hidden"  value="$lang"></form></td>
          </tr>
   	   <tr>
   	     <td height="0" align="center"  colspan="7">$page_list</td>
        </tr>
		<tr>
		  <td class="list1_footer" colspan="7" align="center">$foot</td>
	  </tr>
</table>
</body>
</html>
<!--
EOT;
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>-->